<? $cnt = count ( $recommended ); ?>
<ul class="rslides">
    <? for ( $i = 0; $i < $cnt; $i++ ): ?>
    <li>
        <?php
            $obj_name = URLify::filter($recommended[$i]->object_name);
            $href = lang_url('accommodation/' . $obj_name . '-' . $recommended[$i]->object_ID . '?preview=1&room_id=' . $recommended[$i]->lowest_price_room_id) . lcu();
            $thumbnail = HOST_URL_HOTELS . $recommended[$i]->photo_path . '/thumb_581x342/' . $recommended[$i]->photo_name;
        ?>
        <img src="<?= $thumbnail ?>" alt="<?= $recommended[$i]->photo_title ?>" /> 
        <?php
            $string = strip_tags($recommended[$i]->object_information);
            $strlen = strlen($recommended[$i]->object_name);
        ?>
        <div class="black"  style="width:<?= $strlen * 13 - 19 ?>px">
            <h3><?= $recommended[$i]->object_name ?></h3>
            <span class="result-price"><?= lang('from'); ?> <span class="big">  <?= lang(currency_sign()) ?> <?= round($recommended[$i]->lowest_price) ?></span></span>
            <p style="width:<?= $strlen * 17 ?>px">
                <?php
                    $string = strip_tags($recommended[$i]->object_information);
                    $strlen = strlen($recommended[$i]->object_name);
                    echo substr($string, 0, ($strlen * 1.3) * 1.1) . '...';
                ?></p>
            <a href="<?= $href ?>"><?= lang('view_details'); ?></a>
        </div>
    </li>
    <? endfor; ?> 
</ul><!-- / rslides -->